package dba.example.guice.finders

import com.google.inject.persist.finder.Finder
import java.util.ArrayList
import java.util.List
import dba.example.entities.Account

trait AccountFinder {

  @Finder(query = "SELECT a FROM Account a ORDER BY a.nameSort, a.id", returnAs = classOf[ArrayList[Account]])
  def findAll(): List[Account]

}